home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 20
/
Aminet 20 (1997)(GTI - Schatztruhe)[!][Aug 1997].iso
/
Aminet
/
comm
/
www
/
awebedv1_2.lha
/
AWebEd
/
helpdocs
/
commands
< prev
next >
Wrap
Text File
|
1980-01-08
|
5KB
|
130 lines
Back to MENU
Back to AMAL
AMAL commands and variables
---------------------------
Commands:
---------
AMAL currently has seventeen (!) commands. These are supplemented
by the Arexx commands unique to each application supporting Arexx.
The commands are:
CUTTEXT DOS INSERTPATH INSERTTEXT
MOVECURSOR NEWLINE PASTETEXT SAVEDOC SCREEN
SELECTTEXT SEND SETDIRECTORY SPEAKTO TYPE
TYPEERROR TYPEPORTS TYPERESULTS
Command descriptions:
---------------------
CUTTEXT: syntax CUTTEXT - Cuts the selected text out of the
document.
DOS: syntax DOS <string> - Executes a dos command.
Example: DOS execute hd1:scripts/search
INSERTPATH: syntax INSERTPATH {title text} - Prompts a file
requestor. Inserts the selected path
into the document. The optional string
{title text} defines the text in the
file requestor title bar.
INSERTTEXT: syntax 1 - INSERTTEXT <path>
- Inserts the ASCII file <path> into the
current document at the position on
the cursor.
Example: INSERTTEXT hd1:text/template.txt
syntax 2 - INSERTTEXT SELECTPATH
- Prompts the user with a file
requestor.
Example: INSERTTEXT SELECTPATH
MOVECURSOR: syntax 1 - MOVECURSOR UP/DOWN/LEFT/RIGHT <integer>
- Moves the cursor in the specified
direction <integer> times.
Example: MOVECURSOR UP 2
2 - MOVECURSOR TOSTARTOFLINE/TOENDOFLINE
- Moves the cursor to the specified region
of the current line.
Example: MOVECURSOR TOENDOFLINE
NEWLINE: syntax NEWLINE - Simulates a "return" strike on the
keyboard at the position of the cursor.
PASTETEXT: syntax PASTETEXT - Pastes the text in the clipboard into
the document at the position of the
cursor.
SAVEDOC: syntax 1 - SAVEDOC <path> - Saves the current document to
<path>.
Example: SAVEDOC hd1:text/page1.txt
2 - SAVEDOC SELECTPATH - Prompts the user with a
file requestor before saving.
Example: SAVEDOC SELECTPATH
SCREEN: syntax SCREEN TOFRONT/TOBACK - Moves the AWebEd screen to
the front or back.
Example: SCREEN TOFRONT
SELECTTEXT: syntax SELECTTEXT LINE/WORD - Selects the portion of
text specified by the key word.
Example: SELECTTEXT WORD
SEND: syntax SEND <string> - Sends a message to the port specified
by "SPEAKTO". The message is
specified by <message>
Example: SEND quit force
SETDIRECTORY: syntax 1 - SETDIRECTORY PATH <string> - sets the
current directory to the path <string>.
syntax 2 - SETDIRECTORY PARENT - sets the current
directory to the parent of the current
directory.
syntax 3 - SETDIRECTORY PROGDIR - sets the current
directory to the program directory.
NB - The default directory is always the
program directory. Before and after
executing an AMAL script AWebEd always
reverts to the default directory.
SPEAKTO: syntax SPEAKTO <string> - Specifies the Arexx port to send
a message to. This port is
identified by <port>
Example: SPEAKTO AWEB.1
TYPE: syntax TYPE <string> - Inserts the text <string> into the
current document at the position of
the cursor.
Example: TYPE Greetings
TYPEERROR: syntax TYPEERROR - Types the most recently recieved error
code into the editing window at the
cursor position.
TYPEPORTS: syntax TYPEPORTS - Types the currently active ports into
the editing window at the cursor
position.
TYPERESULT: syntax TYPERESULT - Types the most recently returned
message into the editing window at
the cursor position.
Variables
---------
AMAL currently supports one (!!!) variable. All variables must be
in uppercase.
Variable description:
---------------------
DOCPATH - the path of the current document.
Example: SAVEDOC DOCPATH
Onto EXAMPLES